﻿using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace SuppKids.Core.Domain
{
	public class Dish : Entity
	{
		private ICollection<Ingredient> ingredients = new List<Ingredient>();
		private ICollection<DailyMenu> dailyMenus = new List<DailyMenu>();
		private ICollection<DishAmount> dishAmounts = new List<DishAmount>();

		[Required]
		[StringLength(255)]
		public string Name { get; set; }

		public virtual ICollection<Ingredient> Ingredients
		{
			get { return ingredients; }
			set { ingredients = value; }
		}

		public virtual ICollection<DailyMenu> DailyMenus
		{
			get { return dailyMenus; }
			set { dailyMenus = value; }
		}

		public virtual ICollection<DishAmount> DishAmounts
		{
			get { return dishAmounts; }
			set { dishAmounts = value; }
		}
	}
}